using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Core;

public class LoginScene : BaseScene
{
    protected override void OnInit(object arg)
    {
        Management.World.AddFeature<DebugFeature>();

        var mainCamera = new GetMainCamera().Publish().mainCamera;
        var mainCameraPos = GetReference<Transform>("mainCameraPos");
        mainCamera.transform.position = mainCameraPos.transform.position;
        mainCamera.transform.rotation = mainCameraPos.transform.rotation;

        GetConfig();

        new OpenPanel(PanelPath.LoginPanel).Publish();
    }

    private void GetConfig()
    {
        var config = TestExcel.Ins.GetID(1);
        Debug.Log($"config, id:{config.id}, num:{config.number}");
    }
}
